package com.bto.solar.work.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * <p>
 * 设备信息
 * </p>
 *
 * @author adrian
 * @since 2023-08-28
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "Device对象", description = "设备信息")
public class Device implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @ApiModelProperty("订单ID")
    private String orderId;

    @ApiModelProperty("设备类型（	ZUJIAN：组件，	NBQ：逆变器，	CJQ：采集器，	PDX：配电箱，	ZLDL、直流电缆，	ZHIJIA：支架）")
    private String deviceType;

    @ApiModelProperty("厂家编号")
    private String manufacturerNumber;

    @ApiModelProperty("厂家名称")
    private String manufacturer;

    @ApiModelProperty("供应商")
    private String supplier;

    @ApiModelProperty("采购方式")
    private String purchaseType;

    @ApiModelProperty("规格型号")
    private String specificationsModel;

    /**
    * 设备扫码时，需要使用此值判断，是否符合设计标准
    */
    @ApiModelProperty("逆变器功率 ，组件功率(power)，配电箱电流")
    private Integer modulePower;

    @ApiModelProperty("设备数量")
    private Integer deviceQuantity;

    @ApiModelProperty("单价（元）")
    private BigDecimal unitPrice;

    @ApiModelProperty("设备编号")
    private String deviceNumber;

    @ApiModelProperty("影像信息（组件条码照片）")
    private String image;

    @ApiModelProperty("材质")
    private String material;

    @ApiModelProperty("（电缆）总长度（米）")
    private BigDecimal length;

    @ApiModelProperty("扩展")
    private String expend;

    @ApiModelProperty("厂家简称")
    private String manufacturerShortName;

    @ApiModelProperty("厂家简码")
    private String manufacturerShortCode;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Timestamp createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Timestamp updateTime;

    @ApiModelProperty("录入时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp inputDataTime;
}
